| 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 -fexec-charset=ISO-8859-1 -g" } */ |
| 7 |
/* { dg-require-iconv "ISO-8859-1" } */ |
| 8 |
|
| 9 |
extern int strcmp (const char *, const char *); |
| 10 |
extern void abort (void); |
| 11 |
extern void exit (int); |
| 12 |
|
| 13 |
void |
| 14 |
\u00e9 (void) |
| 15 |
{ |
| 16 |
if (strcmp (__func__, "\u00e9") != 0) |
| 17 |
abort (); |
| 18 |
} |
| 19 |
|
| 20 |
int |
| 21 |
main (void) |
| 22 |
{ |
| 23 |
\u00e9 (); |
| 24 |
exit (0); |
| 25 |
} |