2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-28 07:42:16 +00:00
Files
wave/test/testwave/testfiles/001_034.cpp
Hartmut Kaiser ba631f9425 Added new unit tests.
[SVN r27946]
2005-04-03 18:27:13 +00:00

22 lines
715 B
C++

/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2005 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
// Tests empty __VA_ARGS__ expansion
//O --variadics
#define MACRO1(x, ...) x -> __VA_ARGS__
#define MACRO2(...) __VA_ARGS__
#define STR(...) #__VA_ARGS__
//R #line 19 "001_034.cpp"
MACRO1(1,) //R 1 ->
MACRO2(1, 2) //R 1,2
STR() //R ""