blob: ec19626d28e01fb6a72a99d7b84b840ef5925a0e [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only %s -verify
Chris Lattner3da2db42007-10-29 04:26:44 +00002
3typedef struct { unsigned long bits[(((1) + (64) - 1) / (64))]; } cpumask_t;
4cpumask_t x;
5void foo() {
6 (void)x;
7}
Eli Friedman41826bb2009-05-01 02:23:58 +00008void bar() {
9 char* a;
10 double b;
11 b = (double)a; // expected-error {{pointer cannot be cast to type}}
12 a = (char*)b; // expected-error {{cannot be cast to a pointer type}}
13}
Chris Lattner3da2db42007-10-29 04:26:44 +000014