diff options
Diffstat (limited to '')
-rw-r--r-- | test/testFuncs1.c | 4 | ||||
-rw-r--r-- | test/testFuncs2.c | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 50c5905..9af097c 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -15,6 +15,10 @@ typedef unsigned int ut_int;
typedef signed int t_int;
typedef unsigned char BYTE;
+/*5.3:clang doesnt allow typedef redifinition*/
+#if 0
+typedef const int dummytypedef;
+#endif
const unsigned int shift = 10U;
diff --git a/test/testFuncs2.c b/test/testFuncs2.c index 18b2260..81b0102 100644 --- a/test/testFuncs2.c +++ b/test/testFuncs2.c @@ -13,6 +13,16 @@ /*********************************************************************************************************************/ /*macro and definitions*/ typedef const* INTPTR; +/*clang wont let it through*/ +#if 0 +typedef int dummytypedef; +#endif + +#if 0 +/*clang wont let it through*/ +/*for 5.3*/ +typedef gaga incompletearr1; +#endif #define XMACRO Y @@ -82,6 +92,11 @@ union u3 char ub; }; +double u3; +double ua; + +int s10; + struct s10; struct s11; @@ -145,8 +160,10 @@ void testfunc3() #define LUPO wolf +#if 1 int abcdefghijklmnopqrstuvwxyz1234567890; int abcdefghijklmnopqrstuvwxyz12345678902; +#endif /*do stuff*/ } @@ -312,5 +329,13 @@ void testfunc14(void) d = e; } +void testfunc15 (void) +{ + int a[10]; + + a[1] = 041; + a[2] = 052; +} + /*********************************************************************************************************************/ /*last line intentionally left blank.*/ |