[cfe-commits] r45682 - /cfe/trunk/Lex/Preprocessor.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Jan 7 09:35:43 PST 2008


We have this test failing in TOT clang:

Sema/i-c-e1.c
******************** TEST 'Sema/i-c-e1.c' FAILED! ********************
Command:
  clang Sema/i-c-e1.c -fsyntax-only
Output:
Sema/i-c-e1.c:3:29: warning: dereferencing void pointer
void test1(int n, int* p) { *(n ? p : (void *)(7-7)) = 1; }
                             ^~~~~~~~~~~~~~~~~~~~~~~~
Sema/i-c-e1.c:3:54: error: incomplete type 'void' is not assignable
void test1(int n, int* p) { *(n ? p : (void *)(7-7)) = 1; }
                             ~~~~~~~~~~~~~~~~~~~~~~~~ ^
Sema/i-c-e1.c:4:29: warning: dereferencing void pointer
void test2(int n, int* p) { *(n ? p : (void *)0) = 1; }
                             ^~~~~~~~~~~~~~~~~~~~
Sema/i-c-e1.c:4:50: error: incomplete type 'void' is not assignable
void test2(int n, int* p) { *(n ? p : (void *)0) = 1; }
                             ~~~~~~~~~~~~~~~~~~~~ ^
4 diagnostics generated.
******************** TEST 'Sema/i-c-e1.c' FAILED! ********************

- fariborz




More information about the cfe-commits mailing list