Fix the clang-wpa example.
[clang.git] / test / SemaCXX / writable-strings-deprecated.cpp
blobc89c88256426a8996b899044a7204d21c5c1d266
1 // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-writable-strings -verify %s
2 // rdar://8827606
4 char *fun(void)
6 return "foo";
9 void test(bool b)
11 ++b; // expected-warning {{incrementing expression of type bool is deprecated}}