2009-06-02 17:58:47 +00:00
|
|
|
// Test this without pch.
|
2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -include %S/ext_vector.h -fsyntax-only -verify %s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
// Test with pch.
|
2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t %S/ext_vector.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
int test(float4 f4) {
|
|
|
|
return f4.xy; // expected-error{{float2}}
|
|
|
|
}
|