2014-11-18 14:17:20 +08:00
|
|
|
// 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 = !{{{.*}}}
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK-BIGPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 2}
|
2014-11-18 14:17:20 +08:00
|
|
|
// CHECK-SMALLPIC: !llvm.module.flags = !{{{.*}}}
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK-SMALLPIC: !{{[0-9]+}} = !{i32 1, !"PIC Level", i32 1}
|