p3-0x.cpp revision dca97dd5dab315e82be6dad0d90c51b030bea531
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s 2 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