Home | History | Annotate | Download | only in CodeGenCXX
      1 // 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
      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 };
     10 
     11 class EVT {
     12 public:
     13   int a;
     14   int b;
     15   int c;
     16 };
     17 
     18 class VAL {
     19 public:
     20   int x;
     21   int y;
     22 };
     23 void foo(EVT e);
     24 EVT bar();
     25 
     26 void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
     27 //CHECK: .{{asciz|string}} "missing_arg"
     28   EVT e = bar();
     29   if (dl == n)
     30     foo(missing_arg);
     31 }
     32 
     33