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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Frontend
/
warning-mapping-5.c
blob
84efd8010d0fd12fb33af5d8ebd85e77b47755c4
1
// Check that #pragma diagnostic warning overrides -Werror.
2
//
3
// RUN: %clang_cc1 -verify -Werror %s
4
5
#pragma clang diagnostic warning
"-Wsign-compare"
6
int
f0
(
int
x
,
unsigned
y
) {
7
return
x
<
y
;
// expected-warning {{comparison of integers}}
8
}