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
[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git]
/
clang
/
test
/
OpenMP
/
nothing_messages.cpp
blob
0e27e3c27076a7b0588625f83e16d0a40caa72f7
1
// RUN: %clang_cc1 -verify=expected -fopenmp -ferror-limit 100 %s -Wuninitialized
2
3
int
mixed
() {
4
int
x
=
0
;
5
int
d
=
4
;
6
7
#pragma omp nothing
8
x
=
d
;
9
10
if
(!
x
) {
11
#pragma omp nothing
12
x
=
d
;
13
}
14
15
if
(!
x
)
16
#pragma omp nothing
17
x
=
d
;
18
19
// expected-warning@+2 {{extra tokens at the end of '#pragma omp nothing' are ignored}}
20
if
(!
x
) {
21
#pragma omp nothing seq_cst
22
x
=
d
;
23
}
24
25
return
0
;
26
}