brintos

brintos / llvm-project-archived public Read only

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