aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/x86_64-arguments.cpp
blob: 426c867a7b6bebc263eea9f362318477d19709c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o %t %s &&
struct A { ~A(); };

// RUN: grep 'define void @_Z2f11A(.struct.A\* .a)' %t &&
void f1(A a) { }

// RUN: grep 'define void @_Z2f2v(.struct.A\* noalias sret .agg.result)' %t &&
A f2() { return A(); }

// RUN: true