minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-byval.cpp
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

31 lines
460 B
C++

// RUN: %clang -g -S %s -o - | FileCheck %s
// Test to check presence of debug info for byval parameter.
// 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) {
//CHECK: .{{asciz|string}} "missing_arg"
EVT e = bar();
if (dl == n)
foo(missing_arg);
}