mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
4995bb0450
This patch updates LLVMDebugVersion to 8. Debug info descriptors encoded using LLVMDebugVersion 7 is supported. Corresponding llvmgcc and clang FE commits are required. llvm-svn: 98020
15 lines
497 B
C++
15 lines
497 B
C++
// 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 ..."
|
|
// Here, second to last argument "i32 64" indicates that artificial type is set.
|
|
// 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;
|
|
return a.fn1(1);
|
|
}
|