2014-01-30 09:01:36 +08:00
|
|
|
// FIXME: Check IR rather than asm, then triple is not needed.
|
2018-11-15 06:59:27 +08:00
|
|
|
// RUN: %clang --target=%itanium_abi_triple -g -S %s -o - | FileCheck %s
|
2011-04-15 13:22:18 +08:00
|
|
|
// Test to check presence of debug info for byval parameter.
|
2010-08-27 06:54:33 +08:00
|
|
|
// Radar 8350436.
|
|
|
|
class DAG {
|
|
|
|
public:
|
|
|
|
int i;
|
|
|
|
int j;
|
|
|
|
};
|
|
|
|
|
|
|
|
class EVT {
|
|
|
|
public:
|
|
|
|
int a;
|
|
|
|
int b;
|
|
|
|
int c;
|
|
|
|
};
|
|
|
|
|
|
|
|
class VAL {
|
|
|
|
public:
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
};
|
|
|
|
void foo(EVT e);
|
|
|
|
EVT bar();
|
|
|
|
|
|
|
|
void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
|
2013-04-01 23:59:25 +08:00
|
|
|
//CHECK: .{{asciz|string}} "missing_arg"
|
2010-08-27 06:54:33 +08:00
|
|
|
EVT e = bar();
|
|
|
|
if (dl == n)
|
|
|
|
foo(missing_arg);
|
|
|
|
}
|
|
|
|
|