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
[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git]
/
clang
/
test
/
Sema
/
address-unaligned.c
blob
6719509051b3d65c6ef5a592cfb4e615f0f618fd
1
// RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s
2
// expected-no-diagnostics
3
4
typedef
5
struct
__attribute__
((
packed
))
S1
{
6
char
c0
;
7
int
x
;
8
char
c1
;
9
}
S1
;
10
11
void
bar
(
__unaligned
int
*);
12
13
void
foo
(
__unaligned S1
*
s1
)
14
{
15
bar
(&
s1
->
x
);
16
}