From: Chandler Carruth Date: Sun, 27 Mar 2011 21:03:41 +0000 (+0000) Subject: Add my test case for r128353. I think this is the last test case to fail X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b8e0d80dcebd5946f36c1a1b25431616a5735bb;p=clang Add my test case for r128353. I think this is the last test case to fail to be added... Sorry for the noise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128395 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/clang_wrapv_opts.c b/test/Driver/clang_wrapv_opts.c new file mode 100644 index 0000000000..826468e067 --- /dev/null +++ b/test/Driver/clang_wrapv_opts.c @@ -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