Stephen Lin | f756882 | 2013-06-18 20:51:51 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s |
Eli Friedman | 77a259c | 2009-12-08 06:46:18 +0000 | [diff] [blame] | 2 | |
| 3 | struct A { virtual void a(); }; |
| 4 | A x(A& y) { return y; } |
| 5 | |
Stephen Lin | 3258abc | 2013-06-19 23:23:19 +0000 | [diff] [blame^] | 6 | // CHECK: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* %this, %struct.A*) unnamed_addr |
Stephen Lin | f756882 | 2013-06-18 20:51:51 +0000 | [diff] [blame] | 7 | // CHECK: store i8** getelementptr inbounds ([3 x i8*]* @_ZTV1A, i64 0, i64 2) |