Add macro test from N3781.

llvm-svn: 191444
This commit is contained in:
Richard Smith 2013-09-26 18:15:22 +00:00
parent 7f2707a7f4
commit 52d0211ce3
1 changed files with 5 additions and 0 deletions

View File

@ -36,3 +36,8 @@ namespace floating {
#line 123'456
static_assert(__LINE__ == 123456, "");
// x has value 0 in C++11 and 34 in C++1y.
#define M(x, ...) __VA_ARGS__
constexpr int x = { M(1'2,3'4) };
static_assert(x == 34, "");