xref: /llvm-project/clang/test/CodeGenCXX/debug-info-byval.cpp (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 // FIXME: Check IR rather than asm, then triple is not needed.
2 // RUN: %clang --target=%itanium_abi_triple -g -S %s -o - | FileCheck %s
3 // Test to check presence of debug info for byval parameter.
4 class DAG {
5 public:
6   int i;
7   int j;
8 };
9 
10 class EVT {
11 public:
12   int a;
13   int b;
14   int c;
15 };
16 
17 class VAL {
18 public:
19   int x;
20   int y;
21 };
22 void foo(EVT e);
23 EVT bar();
24 
get(int * i,unsigned dl,VAL v,VAL * p,unsigned n,EVT missing_arg)25 void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
26 //CHECK: .{{asciz|string|byte}} "missing_arg"
27   EVT e = bar();
28   if (dl == n)
29     foo(missing_arg);
30 }
31 
32