summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/debug-info-byval.cpp
blob: 56ffe1323791a28ec0f290bea819f8b5cf9b1539 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 "missing_arg"
  EVT e = bar();
  if (dl == n)
    foo(missing_arg);
}