150
|
1 // RUN: %clang_cc1 -std=c++11 -emit-pch %s -o %t
|
|
2 // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s
|
|
3
|
207
|
4 // RUN: %clang_cc1 -std=c++11 -emit-pch -fpch-instantiate-templates %s -o %t
|
|
5 // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s
|
|
6
|
150
|
7 #ifndef HEADER_INCLUDED
|
|
8
|
|
9 #define HEADER_INCLUDED
|
|
10
|
|
11 template<typename T, int N>
|
|
12 using vec = T __attribute__((ext_vector_type(N)));
|
|
13
|
|
14 #else
|
|
15
|
|
16 void test() {
|
|
17 vec<float, 2> a; // expected-error@-5 {{zero vector size}}
|
|
18 vec<float, 0> b; // expected-note {{in instantiation of template type alias 'vec' requested here}}
|
|
19 }
|
|
20
|
|
21 #endif
|