diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-15 17:07:12 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-15 17:07:12 +0000 |
| commit | 4e58654b47e89efbb1a8ca032c08fd354c3b0b61 (patch) | |
| tree | 5e946d69177464379cb1a38ac18206180d763639 /test/SemaCXX/bool.cpp | |
| parent | 4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2 (diff) | |
Notes
Diffstat (limited to 'test/SemaCXX/bool.cpp')
| -rw-r--r-- | test/SemaCXX/bool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/bool.cpp b/test/SemaCXX/bool.cpp index 44e17ce62b79..726fa6cb60fc 100644 --- a/test/SemaCXX/bool.cpp +++ b/test/SemaCXX/bool.cpp @@ -25,6 +25,6 @@ void static_assert_arg_is_bool(T x) { void test2() { int n = 2; - static_assert_arg_is_bool(n && 4); - static_assert_arg_is_bool(n || 5); + static_assert_arg_is_bool(n && 4); // expected-warning {{use of logical && with constant operand}} + static_assert_arg_is_bool(n || 5); // expected-warning {{use of logical || with constant operand}} } |
