This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC++ / 2010-02-17-DbgArtificialArg.cpp
blobff45412b4414c247b2b1433efccce7c827510334
1 // RUN: %llvmgcc -g -S %s -o - | FileCheck %s
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
6 class A {
7 public:
8 int fn1(int i) const { return i + 2; };
9 };
11 int foo() {
12 A a;
13 // Matching "i32 64, metadata !<number>} ; [ DW_TAG_pointer_type ]"
14 // CHECK: i32 64, metadata {{![0-9]+\} ; \[ DW_TAG_pointer_type \]}}
15 return a.fn1(1);