1 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s |
---|---|
2 | |
3 | int a<::> = { 1, 2, 3 }; |
4 | int b = a<:::a<:0:>:>; |
5 | bool c = a<:0:><::b; |
6 | |
7 | template<int &n> void f() {} |
8 | template void f<::b>(); |
9 | |
10 | #define x a<:: ## : b :> |
11 | int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expected-error {{expected unqualified-id}} |
12 | |
13 | const char xs[] = R"(\ |
14 | ??=\U0000)"; |
15 | static_assert(sizeof(xs) == 12, "did not revert all changes"); |
16 |