Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
      2 
      3 void __attribute__((fastcall)) foo1(int &y);
      4 void bar1(int &y) {
      5   // CHECK-LABEL: define void @_Z4bar1Ri
      6   // CHECK: call x86_fastcallcc void @_Z4foo1Ri(i32* inreg dereferenceable({{[0-9]+}}) %
      7   foo1(y);
      8 }
      9 
     10 struct S1 {
     11   int x;
     12   S1(const S1 &y);
     13 };
     14 
     15 void __attribute__((fastcall)) foo2(S1 a, int b);
     16 void bar2(S1 a, int b) {
     17   // CHECK-LABEL: define void @_Z4bar22S1i
     18   // CHECK: call x86_fastcallcc void @_Z4foo22S1i(%struct.S1* inreg %{{.*}}, i32 inreg %
     19   foo2(a, b);
     20 }
     21