1a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl// Test this without pch. 2a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl// RUN: %clang_cc1 -include %S/Inputs/chain-ext_vector1.h -include %S/Inputs/chain-ext_vector2.h -fsyntax-only -verify %s 3a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl 4a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl// Test with pch. 5a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl// RUN: %clang_cc1 -emit-pch -o %t1 %S/Inputs/chain-ext_vector1.h 6b5af843a20e237ad1a13ad66a867e200695b8c8eDouglas Gregor// RUN: %clang_cc1 -emit-pch -o %t2 %S/Inputs/chain-ext_vector2.h -include-pch %t1 7a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl// RUN: %clang_cc1 -include-pch %t2 -fsyntax-only -verify %s 8a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl 9a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redlint test(float4 f4) { 10a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl return f4.xy; // expected-error{{float2}} 11a9f2368a4016901b5e2ed109b1eead2835ca8242Sebastian Redl} 12