summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/expressions.cpp
blob: b51194acd9c3c582ae30b0b3298c8cd68186c43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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);
}

// rdar://8018252
void f0() {
  extern void f0_1(int*);
  register int x;
  f0_1(&x);
}
OpenPOWER on IntegriCloud