summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-endian.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-endian.c')
-rw-r--r--test/Sema/attr-endian.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/attr-endian.c b/test/Sema/attr-endian.c
new file mode 100644
index 0000000..db24daf
--- /dev/null
+++ b/test/Sema/attr-endian.c
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 %s -verify -fsyntax-only
+
+int p1 __attribute__((endian(host))); // expected-warning {{unknown attribute 'endian' ignored}}
OpenPOWER on IntegriCloud