Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - | FileCheck %s
      2 
      3 struct A
      4 {
      5     ~A();
      6 };
      7 int foo(A);
      8 
      9 void bar(A &a)
     10 {
     11     // CHECK: call void asm
     12     asm("" : : "r"(foo(a)) ); // rdar://8540491
     13     // CHECK: call void @_ZN1AD1Ev
     14 }
     15