aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/utf-dflt2.c
blob: 022c081fdb7ca1d969a0b987eff1ed20e169a900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* If not gnu99, the u8 prefix should be parsed as separate tokens. */
/* { dg-do compile } */
/* { dg-options "" } */

const void	*s0 = u8"a";		/* { dg-error "undeclared" "undeclared" } */
		/* { dg-error "expected ',' or ';'" "expected" { target *-*-* } 5 } */

#define u8	"a"

const void	*s1 = u8"a";

int main () {}