summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ucnid-9.c
blob: a6f91184a987f8aba02125cd9cd8f1d2bd8b44f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Test __func__ with extended identifiers and character set
   conversions.  */
/* { dg-do run } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers -fexec-charset=ISO-8859-1" } */
/* { dg-require-iconv "ISO-8859-1" } */

extern int strcmp (const char *, const char *);
extern void abort (void);
extern void exit (int);

void
\u00e9 (void)
{
  if (strcmp (__func__, "\u00e9") != 0)
    abort ();
}

int
main (void)
{
  \u00e9 ();
  exit (0);
}