freebsd-skq/test/SemaCXX/expressions.cpp
2010-01-01 10:34:51 +00:00

10 lines
157 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
void choice(int);
int choice(bool);
void test() {
// Result of ! must be type bool.
int i = choice(!1);
}