repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC++
/
2009-09-09-packed-layout.cpp
blob
a569f9f78767bf9a8534e39a777d89136ed2e984
1
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o /dev/null
2
class
X
{
3
public
:
4
virtual
~
X
();
5
short
y
;
6
};
7
#pragma pack(push, 1)
8
class
Z
:
public
X
{
9
public
:
enum
{
foo
= (
'x'
) };
10
virtual
int
y
()
const
;
11
};
12
#pragma pack(pop)
13
class
Y
:
public
X
{
14
public
:
enum
{
foo
= (
'y'
),
bar
=
0
};
15
};
16
X x
;
17
Y y
;
18
Z z
;