Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-func-3.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Test for C99 __func__: not merging with string literals. */ |
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */ | |
3 /* { dg-do run } */ | |
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ | |
5 | |
6 extern void abort (void); | |
7 extern void exit (int); | |
8 | |
9 int | |
10 main (void) | |
11 { | |
12 if ("main" == __func__) | |
13 abort (); | |
14 else | |
15 exit (0); | |
16 } |