]> granicus.if.org Git - clang/commitdiff
Add my test case for r128353. I think this is the last test case to fail
authorChandler Carruth <chandlerc@gmail.com>
Sun, 27 Mar 2011 21:03:41 +0000 (21:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 27 Mar 2011 21:03:41 +0000 (21:03 +0000)
to be added... Sorry for the noise.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128395 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/clang_wrapv_opts.c [new file with mode: 0644]

diff --git a/test/Driver/clang_wrapv_opts.c b/test/Driver/clang_wrapv_opts.c
new file mode 100644 (file)
index 0000000..826468e
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: %clang -### -S -fwrapv -fno-wrapv -fwrapv %s 2>&1 | FileCheck -check-prefix=CHECK1 %s
+// CHECK1: -fwrapv
+//
+// RUN: %clang -### -S -fstrict-overflow -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK2 %s
+// CHECK2: -fwrapv
+//
+// RUN: %clang -### -S -fwrapv -fstrict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK3 %s
+// CHECK3: -fwrapv
+//
+// RUN: %clang -### -S -fno-wrapv -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK4 %s
+// CHECK4-NOT: -fwrapv