| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s | ||
|
|
||
| define token @f() { | ||
| entry: | ||
| ret token undef | ||
| } | ||
| ; CHECK: Functions returns a token but isn't an intrinsic |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s | ||
|
|
||
| define void @f() { | ||
| entry: | ||
| call token () undef () | ||
| ret void | ||
| } | ||
| ; CHECK: Return type cannot be token for indirect call! |