[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-byval.cpp
blobd61c289b3c484f4d4d92b5e3df60bc48a7326045
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 // Radar 8350436.
5 class DAG {
6 public:
7 int i;
8 int j;
9 };
11 class EVT {
12 public:
13 int a;
14 int b;
15 int c;
18 class VAL {
19 public:
20 int x;
21 int y;
23 void foo(EVT e);
24 EVT bar();
26 void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
27 //CHECK: .{{asciz|string|byte}} "missing_arg"
28 EVT e = bar();
29 if (dl == n)
30 foo(missing_arg);