The Swords and Sandals Full Version is a game full version of.swf, 1.// RUN: %clang_cc1 %s -fsyntax-only -verify
// PR5130
// rdar://problem/6456976
struct S {};
typedef S (*SX)();
void f(SX x) {
(void)sizeof(SX);
}
// rdar://problem/7266386
enum {
E1
};
void test(int x) {
(void)enum; // expected-warning{{implicit conversion from 'int' to 'enum' is disallowed with var-args}}
(void)enum E1;
(void)enum E1 : 4; // expected-error{{ambiguous conversion of 'E1' between 'enum' and 'int'}}
(void)enum {
} ; // expected-error{{initializing 'enum' with an expression of incompatible type 'int'}}
}
// rdar://problem/8441543
struct R {};
void g(R r) {
(void)__builtin_va_arg(0, void*); // expected-error{{implicit conversion from 'void *' to 'void' is disallowed with var-args}}
(void)__builtin_va_arg(0, void*); // expected-error{{implicit conversion from 'int' to 'void*' is disallowed with var-args}}
}
// rdar://problem/9841703
typedef __SIZE_TYPE__ size_t;
void h(size_t *);
void i(int *);
void j(void *);
void k(char *);
void *l(void *);
void f0(void) {
(void)sizeof(h(i(j(k(l(1)))))) + 1; // expected-warning{{implicit conversion of'size_t' to 'int *' is disallowed with var-args}}
}
// rdar://problem/10813453
void *m(int *);
void *n(void *);
void *o(void *);
void f1(void) { be359ba680
Related links:
Commentaires