In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / ucnid-9.c
bloba6f91184a987f8aba02125cd9cd8f1d2bd8b44f9
1 /* Test __func__ with extended identifiers and character set
2 conversions. */
3 /* { dg-do run } */
4 /* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "*" } { "" } } */
5 /* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
6 /* { dg-options "-std=c99 -fextended-identifiers -fexec-charset=ISO-8859-1" } */
7 /* { dg-require-iconv "ISO-8859-1" } */
9 extern int strcmp (const char *, const char *);
10 extern void abort (void);
11 extern void exit (int);
13 void
14 \u00e9 (void)
16 if (strcmp (__func__, "\u00e9") != 0)
17 abort ();
20 int
21 main (void)
23 \u00e9 ();
24 exit (0);