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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
PR5060-align.c
blob
6e65175a7115517c91bdcd7ef4bc942073551a2e
1
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3
// CHECK: @foo.p = internal global i8 0, align 16
4
char
*
foo
(
void
) {
5
static char
p
__attribute__
((
aligned
(
16
)));
6
return
&
p
;
7
}
8
9
void
bar
(
long
n
) {
10
// CHECK: align 16
11
char
p
[
n
]
__attribute__
((
aligned
(
16
)));
12
}
13