| 1 |
// DESCRIPTION |
| 2 |
// |
| 3 |
// Check for baseline language coverage in the compiler for the C++0x |
| 4 |
// standard. |
| 5 |
// In sync with AC_CXX_COMPILE_STDCXX_0X (2008-04-17). |
| 6 |
// |
| 7 |
// COPYLEFT |
| 8 |
// |
| 9 |
// Copyright (c) 2009 Theo Papadopoulo <[email protected]> |
| 10 |
// Copyright (c) 2008 Benjamin Kosnik <[email protected]> |
| 11 |
// |
| 12 |
// Copying and distribution of this file, with or without modification, are |
| 13 |
// permitted in any medium without royalty provided the copyright notice |
| 14 |
// and this notice are preserved. |
| 15 |
|
| 16 |
template <typename T> |
| 17 |
struct check { |
| 18 |
static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 19 |
}; |
| 20 |
|
| 21 |
typedef check<check<bool>> right_angle_brackets; |
| 22 |
|
| 23 |
int a; |
| 24 |
decltype(a) b; |
| 25 |
|
| 26 |
typedef check<int> check_type; |
| 27 |
check_type c; |
| 28 |
check_type&& cr = c; |
| 29 |
|
| 30 |
int main() { } |