Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -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 | } |