blob: b51194acd9c3c582ae30b0b3298c8cd68186c43f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Sebastian Redl95389dd2009-01-19 21:37:51 +00002
3void choice(int);
4int choice(bool);
5
6void test() {
7 // Result of ! must be type bool.
8 int i = choice(!1);
9}
Fariborz Jahanian957355e2010-08-24 22:55:33 +000010
11// rdar://8018252
12void f0() {
13 extern void f0_1(int*);
14 register int x;
15 f0_1(&x);
16}