1 // Test that the `no-jump-tables` function attribute are (not) emitted when
2 // the `-Zno-jump-tables` flag is (not) set.
4 // revisions: unset set
5 // needs-llvm-components: x86
6 // compile-flags: --target x86_64-unknown-linux-gnu
7 // [set] compile-flags: -Zno-jump-tables
10 #![feature(no_core, lang_items)]
18 // CHECK: @foo() unnamed_addr #0
20 // unset-NOT: attributes #0 = { {{.*}}"no-jump-tables"="true"{{.*}} }
21 // set: attributes #0 = { {{.*}}"no-jump-tables"="true"{{.*}} }