* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / utf-dflt.C
blobc2b127d5ddad084d1657be28dabdb92a4ec088f5
1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
2 /* Expected errors for char16_t/char32_t in default std. */
3 /* Ensure u and U prefixes are parsed as separate tokens in default std. */
4 /* { dg-do compile } */
5 /* { dg-options "-std=c++98" } */
7 const static char16_t   c0      = 'a';  /* { dg-error "not name a type" } */
8 const static char32_t   c1      = 'a';  /* { dg-error "not name a type" } */
10 const unsigned short    c2      = u'a'; /* { dg-error "not declared" } */
11 const unsigned long     c3      = U'a'; /* { dg-error "not declared" } */
13 #define u       1 +
14 #define U       2 +
16 const unsigned short    c4      = u'a';
17 const unsigned long     c5      = U'a';
19 #undef u
20 #undef U
21 #define u       "a"
22 #define U       "b"
24 const void              *s0     = u"a";
25 const void              *s1     = U"a";
27 int main () {}