diff options
Diffstat (limited to 'test/CodeGen/builtin-assume.c')
-rw-r--r-- | test/CodeGen/builtin-assume.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-assume.c b/test/CodeGen/builtin-assume.c new file mode 100644 index 0000000..a381a4c --- /dev/null +++ b/test/CodeGen/builtin-assume.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -triple i386-mingw32 -fms-extensions -emit-llvm -o - %s | FileCheck %s + +// CHECK-LABEL: @test1 +int test1(int *a) { + __assume(a != 0); + return a[0]; +} + |