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 | 82701204a4b2a9f22df58320bf266cfaabdcf3f5 (patch) | |
| tree | ac4ef720e819ab914dcbfc8d6716b8ff92bf2c06 /clang/test/Driver/clang_wrapv_opts.c | |
| parent | edcc04e05bd7539ebf0ab1651352cc9b46b999eb (diff) | |
| download | bcm5719-llvm-82701204a4b2a9f22df58320bf266cfaabdcf3f5.tar.gz bcm5719-llvm-82701204a4b2a9f22df58320bf266cfaabdcf3f5.zip | |
Add my test case for r128353. I think this is the last test case to fail
to be added... Sorry for the noise.
llvm-svn: 128395
Diffstat (limited to 'clang/test/Driver/clang_wrapv_opts.c')
| -rw-r--r-- | clang/test/Driver/clang_wrapv_opts.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Driver/clang_wrapv_opts.c b/clang/test/Driver/clang_wrapv_opts.c new file mode 100644 index 00000000000..826468e0678 --- /dev/null +++ b/clang/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 |

