blob: 426c867a7b6bebc263eea9f362318477d19709c6 [file] [log] [blame]
Anders Carlsson0a8f8472009-09-16 15:53:40 +00001// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o %t %s &&
2struct A { ~A(); };
3
4// RUN: grep 'define void @_Z2f11A(.struct.A\* .a)' %t &&
5void f1(A a) { }
6
7// RUN: grep 'define void @_Z2f2v(.struct.A\* noalias sret .agg.result)' %t &&
8A f2() { return A(); }
9
10// RUN: true