Stuart Hastings | 8ffc42f | 2010-05-28 16:41:07 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgcc -g -S %s -o - | grep DW_TAG_pointer_type | grep "i32 524303, metadata .., metadata ..., metadata .., i32 ., i64 .., i64 .., i64 0, i32 64, metadata ..." |
Devang Patel | ca82a15 | 2010-02-18 00:53:49 +0000 | [diff] [blame] | 2 | // 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 | |||||
6 | class A { | ||||
7 | public: | ||||
8 | int fn1(int i) const { return i + 2; }; | ||||
9 | }; | ||||
10 | |||||
11 | int foo() { | ||||
12 | A a; | ||||
Devang Patel | ca82a15 | 2010-02-18 00:53:49 +0000 | [diff] [blame] | 13 | return a.fn1(1); |
14 | } |