builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-func-1.c
blob43fb0321774f333291538c4c8b271e6d7432d895
1 /* Test for C99 __func__. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do run } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6 extern void abort (void);
7 extern int strcmp (const char *, const char *);
8 extern void exit (int);
10 int
11 main (void)
13 if (strcmp (__func__, "main") || sizeof (__func__) != 5)
14 abort ();
15 else
16 exit (0);