diff options
Diffstat (limited to 'test/Sema/promote-int-16bit.c')
-rw-r--r-- | test/Sema/promote-int-16bit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/promote-int-16bit.c b/test/Sema/promote-int-16bit.c new file mode 100644 index 0000000000000..fbd1215d90d23 --- /dev/null +++ b/test/Sema/promote-int-16bit.c @@ -0,0 +1,6 @@ +// RUN: clang-cc -fsyntax-only -verify %s -triple pic16-unknown-unknown + +// Check that unsigned short promotes to unsigned int on targets where +// sizeof(unsigned short) == sizeof(unsigned int) +__typeof(1+(unsigned short)1) x; +unsigned x; |