diff options
Diffstat (limited to 'test/Verifier/jumptable.ll')
-rw-r--r-- | test/Verifier/jumptable.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Verifier/jumptable.ll b/test/Verifier/jumptable.ll new file mode 100644 index 0000000..5f4cd3f --- /dev/null +++ b/test/Verifier/jumptable.ll @@ -0,0 +1,9 @@ +; RUN: not llc <%s 2>&1 | FileCheck %s + +define i32 @f() jumptable { + ret i32 0 +} + +; CHECK: Attribute 'jumptable' requires 'unnamed_addr' +; CHECK: i32 ()* @f +; CHECK: LLVM ERROR: Broken function found, compilation aborted! |