one more error
[cparser] / parsetest / cp_error037.c
index 976e3bc..42edf67 100644 (file)
@@ -1,4 +1,13 @@
 extern __inline__ unsigned int ntohl(unsigned int);
+__inline__ unsigned int ntohl2(unsigned int);
+static __inline__ unsigned int ntohl3(unsigned int);
+
+extern __inline__ unsigned int xntohl(unsigned int a) { return 1; }
+__inline__ unsigned int xntohl2(unsigned int a) { return 2; }
+static __inline__ unsigned int xntohl3(unsigned int a) { return 3; }
+
+// only xntohl2 should be globally visible
+// the others should not even exist in the object file
 
 int main(void)
 {