tcc bug: __typeof does not work for function pointers

test case:

#include <stdio.h>
#include <windows.h>
main( int argc)
{
  // ok
  __typeof(0) i = 0;
  // error ';'
  __typeof(&strcpy) p1 = strcpy;
  // error ';'
  __typeof(strcpy)* p2 = strcpy;
  // error ';'
  __typeof(MessageBoxA) *p3 = GetProcAddress(LoadLibrary("user32.dll"),
"MessageBoxA");
  printf("%p\n", p3 );
  p3(0, "hi", "there", 0);
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to