1 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s
2 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s -frecovery-ast -frecovery-ast-type
4 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused -fexperimental-new-constant-interpreter %s
5 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused -frecovery-ast -frecovery-ast-type -fexperimental-new-constant-interpreter %s
7 template <typename
...Ts
>
13 ^ { Ts t
; }; // expected-error {{unexpanded parameter pack 'Ts'}}
14 ^ (Ts t
) {}; // expected-error {{unexpanded parameter pack 'Ts'}}
15 ^ Ts () {}; // expected-error {{unexpanded parameter pack 'Ts'}}
18 template <typename
...Ts
>
20 (^Ts
); // expected-error {{expected expression}}
23 (^Ts
); // expected-error {{expected expression}}
24 ^Ts
; // expected-error {{expected expression}}
25 ^(Ts
); // expected-error {{expected expression}}
26 ^ Ts
); // expected-error {{expected expression}}
30 (^Ts
); // expected-error {{expected expression}}
31 ^Ts
; // expected-error {{expected expression}}
32 ^(Ts
); // expected-error {{expected expression}}
33 ^ Ts
); // expected-error {{expected expression}}
34 }, ...); // expected-error {{pack expansion does not contain any unexpanded parameter packs}}
36 [] { // expected-error {{unexpanded parameter pack 'Ts'}}
40 [] { // expected-error {{unexpanded parameter pack 'Ts'}}
44 [] { // expected-error {{unexpanded parameter pack 'Ts'}}
46 (^Ts
); // expected-error {{expected expression}}
51 (^Ts
); // expected-error {{expected expression}}
54 [] { // expected-error {{unexpanded parameter pack 'Ts'}}
55 ^ { Ts s
; return not_defined
; }; // expected-error {{use of undeclared identifier 'not_defined'}}
66 gh109148
<long, float>();