diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/vector-3.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/vector-3.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/vector-3.c b/gcc-4.9/gcc/testsuite/c-c++-common/vector-3.c new file mode 100644 index 000000000..0f5d3c411 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/vector-3.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ + +/* Check that we error out when using vector_size on the bool type. */ + +#ifdef __cplusplus +#define _Bool bool +#endif +__attribute__((vector_size(16) )) _Bool a; /* { dg-error "" } */ |