Skip to content
Snippets Groups Projects
Commit 52459784 authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

Make corrections to r241314.

The return type of a function follows the signext attribute.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241315 91177308-0d34-0410-b5e6-96231b3b80d8
parent cf8b8c99
No related branches found
No related tags found
No related merge requests found
......@@ -11,19 +11,19 @@ void test_builtin(void) {
__builtin_trap();
}
// TRAPFUNC-LABEL: define i32 {{.*}}@_Z13test_noreturnv
// TRAPFUNC-LABEL: define {{.*}}i32 @_Z13test_noreturnv
// TRAPFUNC: call void @llvm.trap() [[ATTR0]]
// NOOPTION-LABEL: define i32 {{.*}}@_Z13test_noreturnv
// NOOPTION-LABEL: define {{.*}}i32 @_Z13test_noreturnv
// NOOPTION: call void @llvm.trap(){{$}}
int test_noreturn(void) {
}
// TRAPFUNC-LABEL: define i32 {{.*}}@_Z17test_add_overflowii
// TRAPFUNC-LABEL: define {{.*}}i32 @_Z17test_add_overflowii
// TRAPFUNC: call void @llvm.trap() [[ATTR1:#[0-9]+]]
// NOOPTION-LABEL: define i32 {{.*}}@_Z17test_add_overflowii
// NOOPTION-LABEL: define {{.*}}i32 @_Z17test_add_overflowii
// NOOPTION: call void @llvm.trap() [[ATTR2:#[0-9]+]]
int test_add_overflow(int a, int b) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment