diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/misc6.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/misc6.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C new file mode 100644 index 00000000000..b05c1f1da54 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C @@ -0,0 +1,9 @@ +// Build don't link: +// GROUPS passed miscellaneous +// test that use of `inline' is forbidden when it should be +inline int i;// ERROR - .* +struct c { inline int i; };// ERROR - .* +int foo (inline int i);// ERROR - .* +inline class c; // ERROR - inline +inline typedef int t; // ERROR - inline +class d { inline friend class c; }; // ERROR - inline |