repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the clang-wpa example.
[clang.git]
/
test
/
SemaCXX
/
writable-strings-deprecated.cpp
blob
c89c88256426a8996b899044a7204d21c5c1d266
1
// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-writable-strings -verify %s
2
// rdar://8827606
3
4
char
*
fun
(
void
)
5
{
6
return
"foo"
;
7
}
8
9
void
test
(
bool
b
)
10
{
11
++
b
;
// expected-warning {{incrementing expression of type bool is deprecated}}
12
}