repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2013-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
offsetof1.C
blob
ae9d3110aba67c5dc0bdd5fb8dc66e6659decba6
1
#include <stddef.h>
2
3
template <bool> struct StaticAssert;
4
template <> struct StaticAssert<true> {};
5
6
struct MyPOD
7
{
8
int a; int b; int c;
9
};
10
11
StaticAssert<(offsetof(MyPOD, a) == 0)> s;