diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-03-27 21:03:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-03-27 21:03:41 +0000 |
commit | 5b8e0d80dcebd5946f36c1a1b25431616a5735bb (patch) | |
tree | e7e15e3910feee836cf73fbfc449c186c90d3365 | |
parent | 349894ec70777da4f8fe714670aca43acd2e844e (diff) |
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
-rw-r--r-- | test/Driver/clang_wrapv_opts.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 |