xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/ms_integer_suffix.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -fsyntax-only -fms-extensions -verify %s
2*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc #ifdef __SIZEOF_INT8__
5*0a6a1f1dSLionel Sambuc static_assert(sizeof(0i8) == __SIZEOF_INT8__, "");
6*0a6a1f1dSLionel Sambuc #endif
7*0a6a1f1dSLionel Sambuc #ifdef __SIZEOF_INT16__
8*0a6a1f1dSLionel Sambuc static_assert(sizeof(0i16) == __SIZEOF_INT16__, "");
9*0a6a1f1dSLionel Sambuc #endif
10*0a6a1f1dSLionel Sambuc #ifdef __SIZEOF_INT32__
11*0a6a1f1dSLionel Sambuc static_assert(sizeof(0i32) == __SIZEOF_INT32__, "");
12*0a6a1f1dSLionel Sambuc #endif
13*0a6a1f1dSLionel Sambuc #ifdef __SIZEOF_INT64__
14*0a6a1f1dSLionel Sambuc static_assert(sizeof(0i64) == __SIZEOF_INT64__, "");
15*0a6a1f1dSLionel Sambuc #endif
16*0a6a1f1dSLionel Sambuc #ifdef __SIZEOF_INT128__
17*0a6a1f1dSLionel Sambuc static_assert(sizeof(0i128) == __SIZEOF_INT128__, "");
18*0a6a1f1dSLionel Sambuc #endif
19