Fariborz Jahanian | ebfde17 | 2011-01-06 18:45:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-writable-strings -verify %s |
Douglas Gregor | 069a6da | 2011-03-14 16:13:32 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -fwritable-strings -verify %s |
Chandler Carruth | f3babb9 | 2011-04-23 06:54:44 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -fsyntax-only -Wno-write-strings -verify %s |
Fariborz Jahanian | ebfde17 | 2011-01-06 18:45:19 +0000 | [diff] [blame] | 4 | // rdar://8827606 |
| 5 | |
| 6 | char *fun(void) |
| 7 | { |
| 8 | return "foo"; |
| 9 | } |
| 10 | |
| 11 | void test(bool b) |
| 12 | { |
| 13 | ++b; // expected-warning {{incrementing expression of type bool is deprecated}} |
| 14 | } |