blob: 32bc934a7eb6e2b5ad54739d13188861f753a0e6 [file] [log] [blame]
Eric Christopher758aad72017-03-21 22:06:18 +00001// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s
2// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s
Bill Schmidt691e01d2014-10-31 19:19:24 +00003
4// Legitimate for VSX.
5__vector double vv_d1;
6vector double v_d2;
7
8// These should have errors.
9__vector long double vv_ld3; // expected-error {{cannot use 'long double' with '__vector'}}
10vector long double v_ld4; // expected-error {{cannot use 'long double' with '__vector'}}