Fix PCC test failures for source location builtins
llvm-svn: 360943
This commit is contained in:
parent
e3cbdaf1b5
commit
b42c73de3d
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++2a -fblocks %s -triple %itanium_abi_triple -emit-llvm -o %t.ll
|
||||
// RUN: %clang_cc1 -std=c++2a -fblocks %s -triple x86_64-unknown-unknown -emit-llvm -o %t.ll
|
||||
|
||||
#line 8 "builtin-source-location.cpp"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++1z -fblocks %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -std=c++1z -fblocks %s -triple x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s
|
||||
|
||||
extern "C" int sink;
|
||||
extern "C" const volatile void* volatile ptr_sink = nullptr;
|
||||
|
|
|
@ -296,7 +296,7 @@ void f24() {
|
|||
// CHECK-LABEL: define
|
||||
void f25_a(int x = __builtin_LINE()) {}
|
||||
void f25() {
|
||||
// CHECK: call void @_Z5f25_ai(i32 2700)
|
||||
// CHECK: call void @_Z5f25_ai(i32 {{(signext )?}}2700)
|
||||
#line 2700
|
||||
f25_a();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue