blob: 5b0850b9643cc790c050f375b57f15c4bd686531 [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// FIXME: Check IR rather than asm, then triple is not needed.
2// RUN: %clang -Xclang -triple=%itanium_abi_triple -g -S %s -o - | FileCheck %s
Chris Lattnerfc8f0e12011-04-15 05:22:18 +00003// Test to check presence of debug info for byval parameter.
Devang Patel468e8fb2010-08-26 22:54:33 +00004// Radar 8350436.
5class DAG {
6public:
7 int i;
8 int j;
9};
10
11class EVT {
12public:
13 int a;
14 int b;
15 int c;
16};
17
18class VAL {
19public:
20 int x;
21 int y;
22};
23void foo(EVT e);
24EVT bar();
25
26void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
Jyotsna Vermabf279512013-04-01 15:59:25 +000027//CHECK: .{{asciz|string}} "missing_arg"
Devang Patel468e8fb2010-08-26 22:54:33 +000028 EVT e = bar();
29 if (dl == n)
30 foo(missing_arg);
31}
32