diff options
Diffstat (limited to 'test/CodeGen/piclevels.c')
-rw-r--r-- | test/CodeGen/piclevels.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/piclevels.c b/test/CodeGen/piclevels.c new file mode 100644 index 000000000000..54744e2efa7d --- /dev/null +++ b/test/CodeGen/piclevels.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -emit-llvm -pic-level 2 %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC +// RUN: %clang_cc1 -emit-llvm -pic-level 1 %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC + +// CHECK-BIGPIC: !llvm.module.flags = !{{{.*}}} +// CHECK-BIGPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 2} +// CHECK-SMALLPIC: !llvm.module.flags = !{{{.*}}} +// CHECK-SMALLPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 1} |