OSDN Git Service

2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / always_inline.c
index 9480470..08119f1 100644 (file)
@@ -1,21 +1,9 @@
 /* { dg-do compile } */
 /* { dg-options "-Winline -O2" } */
 #include <stdarg.h>
-inline __attribute__ ((always_inline)) void t(void); /* { dg-error "body not available" "" } */
-void
-q(void)
-{
-  t();                                 /* { dg-error "called from here" "" } */
-}
 inline __attribute__ ((always_inline)) void
-q2(void)
-{                              /* { dg-error "recursive" "" } */
-  q2();                        /* { dg-error "called from here" "" } */
-  q2();                        /* { dg-error "called from here" "" } */
-}
-inline __attribute__ ((always_inline)) void
-e(int t, ...)
-{                              /* { dg-error "variable argument" "" } */
+e(int t, ...) /* { dg-message "sorry\[^\n\]*variable argument" "" } */
+{
   va_list q;
   va_start (q, t);
 }