summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/nousejumptable.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/nousejumptable.c')
-rw-r--r--clang/test/CodeGen/nousejumptable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/nousejumptable.c b/clang/test/CodeGen/nousejumptable.c
new file mode 100644
index 00000000000..91ad5818570
--- /dev/null
+++ b/clang/test/CodeGen/nousejumptable.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -S -fno-jump-tables %s -emit-llvm -o - | FileCheck %s
+
+// CHECK-LABEL: main
+// CHECK: attributes #0 = {{.*}}"no-jump-tables"="true"{{.*}}
+
+int main() {
+ return 0;
+}
OpenPOWER on IntegriCloud