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 | } | ||||
Fariborz Jahanian | 957355e | 2010-08-24 22:55:33 +0000 | [diff] [blame] | 10 | |
11 | // rdar://8018252 | ||||
12 | void f0() { | ||||
13 | extern void f0_1(int*); | ||||
14 | register int x; | ||||
15 | f0_1(&x); | ||||
16 | } |