tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc bug: __typeof does not work for function pointers


From: Masha Rabinovich
Subject: [Tinycc-devel] tcc bug: __typeof does not work for function pointers
Date: Thu, 9 Apr 2009 22:34:00 +0100

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);
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]