Rafael Espindola | 1ed1a59 | 2010-06-16 19:01:17 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -triple=arm-unknown-linux-gnueabi -target-abi aapcs -emit-llvm -o - | FileCheck %s |
Rafael Espindola | 99b8b92 | 2010-06-08 03:29:31 +0000 | [diff] [blame] | 2 | |
| 3 | class SMLoc { |
| 4 | const char *Ptr; |
| 5 | public: |
| 6 | SMLoc(); |
| 7 | SMLoc(const SMLoc &RHS); |
| 8 | }; |
| 9 | SMLoc foo(void *p); |
| 10 | void bar(void *x) { |
| 11 | foo(x); |
| 12 | } |
| 13 | void zed(SMLoc x); |
| 14 | void baz() { |
| 15 | SMLoc a; |
| 16 | zed(a); |
| 17 | } |
| 18 | |
Rafael Espindola | 75d0f82 | 2010-06-16 17:49:52 +0000 | [diff] [blame] | 19 | // CHECK: declare void @_Z3fooPv(%class.SMLoc* sret, i8*) |
| 20 | // CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*) |