aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/utf-dflt2.C
blob: ab18ef52fdffaadf7e90d5d1e9709c201bc4c2f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// In C++0x, the u8 prefix should be parsed as separate tokens.
// { dg-do compile }
// { dg-options "-std=c++98" }

const void	*s0 = u8"a";		// { dg-error "was not declared" }

#define u8	"a"

const void	*s1 = u8"a";

int main () {}