mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
cbfadfc4b3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137847 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
543 B
C++
22 lines
543 B
C++
// RUN: %llvmgcc -g -S %s -dA -fverbose-asm -o %t
|
|
// RUN: llc -asm-verbose < %t | FileCheck %s
|
|
// Test to artificial attribute attahed to "this" pointer type.
|
|
// Radar 7655792 and 7655002
|
|
|
|
class A {
|
|
public:
|
|
int fn1(int i) const { return i + 2; };
|
|
};
|
|
|
|
int foo() {
|
|
A a;
|
|
//CHECK: .ascii "this" ## DW_AT_name
|
|
//CHECK-NEXT: .byte 0
|
|
//CHECK-NEXT: ## DW_AT_decl_file
|
|
//CHECK-NEXT: ## DW_AT_decl_line
|
|
//CHECK-NEXT: ## DW_AT_type
|
|
//CHECK-NEXT: ## DW_AT_artificial
|
|
|
|
return a.fn1(1);
|
|
}
|