diff options
Diffstat (limited to 'test/Parser/vsx.c')
-rw-r--r-- | test/Parser/vsx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/vsx.c b/test/Parser/vsx.c new file mode 100644 index 0000000000000..ead09814c8c12 --- /dev/null +++ b/test/Parser/vsx.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -faltivec -target-feature +vsx -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -faltivec -target-feature +vsx -fsyntax-only -verify %s + +// Legitimate for VSX. +__vector double vv_d1; +vector double v_d2; + +// These should have errors. +__vector long double vv_ld3; // expected-error {{cannot use 'long double' with '__vector'}} +vector long double v_ld4; // expected-error {{cannot use 'long double' with '__vector'}} |