brintos

brintos / llvm-project-archived public Read only

0
0
Text · 315 B · aecd2cf Raw
19 lines · cpp
1// RUN: %clang_cc1 %s -triple=i686-apple-darwin10 -emit-llvm -o - | FileCheck %s2 3struct Base {4  virtual ~Base();5  int x;6};7 8#pragma pack(1)9struct Sub : virtual Base {10  char c;11};12 13// CHECK: %struct.Sub = type <{ ptr, i8, %struct.Base }>14Sub f(Sub x) {15  return x;16}17 18static int i[sizeof(Sub) == 13 ? 1 : -1];19