2009-12-15 23:14:24 +03:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only %s -verify
|
2007-10-29 07:26:44 +03:00
|
|
|
|
|
|
|
typedef struct { unsigned long bits[(((1) + (64) - 1) / (64))]; } cpumask_t;
|
|
|
|
cpumask_t x;
|
|
|
|
void foo() {
|
|
|
|
(void)x;
|
|
|
|
}
|
2009-05-01 06:23:58 +04:00
|
|
|
void bar() {
|
|
|
|
char* a;
|
|
|
|
double b;
|
|
|
|
b = (double)a; // expected-error {{pointer cannot be cast to type}}
|
|
|
|
a = (char*)b; // expected-error {{cannot be cast to a pointer type}}
|
|
|
|
}
|
2007-10-29 07:26:44 +03:00
|
|
|
|
2009-11-23 22:51:43 +03:00
|
|
|
long bar1(long *next) {
|
|
|
|
return (long)(*next)++;
|
|
|
|
}
|
|
|
|
|