diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/applecc.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/applecc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/applecc.c b/gcc/testsuite/gcc.apple/applecc.c new file mode 100644 index 00000000000..757ad573272 --- /dev/null +++ b/gcc/testsuite/gcc.apple/applecc.c @@ -0,0 +1,14 @@ +/* APPLE LOCAL file Apple version */ +/* { dg-do compile } */ + +#if __APPLE_CC__ < 1000 +#error build number too small +#endif +#if __APPLE_CC__ > 32768 +#error build number too big +#endif +#if ! ( __APPLE_CC__ > 1000) +#error build number not really a number +#endif + +int x = __APPLE_CC__; |