mirror of
https://github.com/cc65/cc65.git
synced 2024-11-12 07:07:19 +00:00
20 lines
434 B
C
20 lines
434 B
C
/* bug 1888 - cc65 fails with storage class specifiers after type specifiers */
|
|
|
|
#include <stdio.h>
|
|
|
|
int const typedef volatile x_type, * const volatile y_type;
|
|
|
|
int static failures = 0;
|
|
|
|
int extern main(void);
|
|
|
|
int main(void)
|
|
{
|
|
volatile static x_type const x = 42, * const volatile y[] = { 1 ? &x : (y_type)0 };
|
|
if (**y != 42) {
|
|
++failures;
|
|
printf("y = %d, Expected: 42\n", **y);
|
|
}
|
|
return failures;
|
|
}
|