PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / utf-dflt.c
blob18ca30e8b93dc04739a2d8d952cc80250225f27c
1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* If not gnu99, the u and U prefixes should be parsed as separate tokens. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu89" } */
6 const unsigned short c0 = u'a'; /* { dg-error "undeclared" "undeclared" } */
7 /* { dg-error "expected ',' or ';'" "expected" { target *-*-* } .-1 } */
8 const unsigned long c1 = U'a'; /* { dg-error "undeclared" "undeclared" } */
9 /* { dg-error "expected ',' or ';'" "expected" { target *-*-* } .-1 } */
11 #define u 1 +
12 #define U 2 +
14 const unsigned short c2 = u'a';
15 const unsigned long c3 = U'a';
17 #undef u
18 #undef U
19 #define u "a"
20 #define U "b"
22 const void *s0 = u"a";
23 const void *s1 = U"a";
25 int main () {}