Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Sebastian Redl | 95389dd | 2009-01-19 21:37:51 +0000 | [diff] [blame] | 2 | |
3 | void choice(int); | ||||
4 | int choice(bool); | ||||
5 | |||||
6 | void test() { | ||||
7 | // Result of ! must be type bool. | ||||
8 | int i = choice(!1); | ||||
9 | } |