aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp
blob: d0a2fe5021112557f9bf11e2c0a5baccbfc99136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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);
}