brintos

brintos / llvm-project-archived public Read only

0
0
Text · 630 B · 405917f Raw
21 lines · cpp
1// RUN: %clang_cc1 -no-enable-noundef-analysis -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s2 3void __attribute__((fastcall)) foo1(int &y);4void bar1(int &y) {5  // CHECK-LABEL: define{{.*}} void @_Z4bar1Ri6  // CHECK: call x86_fastcallcc void @_Z4foo1Ri(ptr inreg nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %7  foo1(y);8}9 10struct S1 {11  int x;12  S1(const S1 &y);13};14 15void __attribute__((fastcall)) foo2(S1 a, int b);16void bar2(S1 a, int b) {17  // CHECK-LABEL: define{{.*}} void @_Z4bar22S1i18  // CHECK: call x86_fastcallcc void @_Z4foo22S1i(ptr dead_on_return inreg %{{.*}}, i32 inreg %19  foo2(a, b);20}21