Argyrios Kyrtzidis | db2b42f | 2010-12-10 00:11:00 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple=i686-apple-darwin10 -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | struct Base { |
| 4 | virtual ~Base(); |
| 5 | int x; |
| 6 | }; |
| 7 | |
| 8 | #pragma pack(1) |
| 9 | struct Sub : virtual Base { |
| 10 | char c; |
| 11 | }; |
| 12 | |
Anders Carlsson | eb9d81d | 2011-04-17 21:56:13 +0000 | [diff] [blame] | 13 | // CHECK: %struct.Sub = type <{ i32 (...)**, i8, %struct.Base }> |
Argyrios Kyrtzidis | db2b42f | 2010-12-10 00:11:00 +0000 | [diff] [blame] | 14 | void f(Sub*) { } |
Anders Carlsson | eb9d81d | 2011-04-17 21:56:13 +0000 | [diff] [blame] | 15 | |
| 16 | static int i[sizeof(Sub) == 13 ? 1 : -1]; |