repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2008-08-07-GEPIntToPtr.c
blob
6892be033a986f71cfb16dc3440c73379de003d4
1
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
// PR2603
3
4
struct
A
{
5
char
num_fields
;
6
};
7
8
struct
B
{
9
char
a
,
b
[
1
];
10
};
11
12
const struct
A Foo
= {
13
// CHECK: i8 1
14
(
char
*)(&( (
struct
B
*)(
16
) )->
b
[
0
]) - (
char
*)(
16
)
15
};