blob: ff45412b4414c247b2b1433efccce7c827510334 [file] [log] [blame]
Stuart Hastingsaa66d2f2010-05-27 16:16:54 +00001// RUN: %llvmgcc -g -S %s -o - | FileCheck %s
Devang Patelca82a152010-02-18 00:53:49 +00002// Here, second to last argument "i32 64" indicates that artificial type is set.
3// Test to artificial attribute attahed to "this" pointer type.
4// Radar 7655792 and 7655002
5
6class A {
7public:
8 int fn1(int i) const { return i + 2; };
9};
10
11int foo() {
12 A a;
Stuart Hastingsaa66d2f2010-05-27 16:16:54 +000013 // Matching "i32 64, metadata !<number>} ; [ DW_TAG_pointer_type ]"
14 // CHECK: i32 64, metadata {{![0-9]+\} ; \[ DW_TAG_pointer_type \]}}
Devang Patelca82a152010-02-18 00:53:49 +000015 return a.fn1(1);
16}