blob: c0b0259784677e52b16acd96dc8d5f53bef3e8ec [file] [log] [blame]
Argyrios Kyrtzidisdb2b42f2010-12-10 00:11:00 +00001// RUN: %clang_cc1 %s -triple=i686-apple-darwin10 -emit-llvm -o - | FileCheck %s
2
3struct Base {
4 virtual ~Base();
5 int x;
6};
7
8#pragma pack(1)
9struct Sub : virtual Base {
10 char c;
11};
12
Anders Carlssoneb9d81d2011-04-17 21:56:13 +000013// CHECK: %struct.Sub = type <{ i32 (...)**, i8, %struct.Base }>
Argyrios Kyrtzidisdb2b42f2010-12-10 00:11:00 +000014void f(Sub*) { }
Anders Carlssoneb9d81d2011-04-17 21:56:13 +000015
16static int i[sizeof(Sub) == 13 ? 1 : -1];