summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-mode.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-01-07 19:58:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-01-07 19:58:54 +0000
commitf0dafd3cbb951ac63c1994aca007d9eacc3948c7 (patch)
treeb65cb4bc727cd723868f8f5d387cfb181b971770 /clang/test/Sema/attr-mode.c
parentfba226004d667028aec872945d1dd02cdfec7204 (diff)
downloadbcm5719-llvm-f0dafd3cbb951ac63c1994aca007d9eacc3948c7.tar.gz
bcm5719-llvm-f0dafd3cbb951ac63c1994aca007d9eacc3948c7.zip
Add support for attribute((mode(unwind_word))).
Patch by Nick Lewycky. Fixes pr8703. llvm-svn: 171781
Diffstat (limited to 'clang/test/Sema/attr-mode.c')
-rw-r--r--clang/test/Sema/attr-mode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-mode.c b/clang/test/Sema/attr-mode.c
index 0c5336282c4..a89c8397e0a 100644
--- a/clang/test/Sema/attr-mode.c
+++ b/clang/test/Sema/attr-mode.c
@@ -17,6 +17,8 @@ typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machin
typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute only supported for integer and floating-point types}}
typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not match type of base type}}
+typedef unsigned unwind_word __attribute((mode(unwind_word)));
+
int **__attribute((mode(QI)))* i32; // expected-error{{mode attribute}}
typedef _Complex double c32 __attribute((mode(SC)));
OpenPOWER on IntegriCloud