summaryrefslogtreecommitdiffstats
path: root/test/Driver/clang_f_opts.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-12 00:38:18 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-12 00:38:18 +0000
commit6feaf57b46f0856127c84b03f3aee5fb51d0262b (patch)
tree3512db6b98ce6370f7c185d8dea22d7db5c21b94 /test/Driver/clang_f_opts.c
parent20d45d2a9ebb8e20683b11287878a7e341bfea1a (diff)
Make using '-fshort-enums' an error until it is actually implemented (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/clang_f_opts.c')
-rw-r--r--test/Driver/clang_f_opts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c
index 3756a2f4d1..0a5a478618 100644
--- a/test/Driver/clang_f_opts.c
+++ b/test/Driver/clang_f_opts.c
@@ -7,3 +7,6 @@
// RUN: grep -F '"-fno-math-errno"' %t
// RUN: grep -F '"-fno-show-source-location"' %t
// RUN: grep -F '"-fshort-wchar"' %t
+// RUN: clang -fshort-enums -x c /dev/null 2>&1 | FileCheck -check-prefix=CHECK-SHORT-ENUMS %s
+
+// CHECK-SHORT-ENUMS: compiler does not support '-fshort-enums'