2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-19 16:52:15 +00:00
Files
wave/test/testwave/testfiles/t_8_009.cpp
Jeff Trull ec0c8c8603 Implement C++20 features (#75)
* Introduce support for C++20 preprocessor features

- add __VA_OPT__ feature to variadic macros
- allow supplying 0 variadic arguments in more cases
- add related unit tests
2020-03-06 11:48:50 -08:00

18 lines
720 B
C++

/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2020 Jeff Trull. 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)
=============================================================================*/
//O --c++20
//O -Werror
// test that __VA_OPT__ cannot be used in a macro definition without parens
// gcc detects this at definition time
//E t_8_009.cpp(17): error: __VA_OPT__ must be followed by a left paren in a C++20 variadic macro: FOO
#define FOO(...) BAR __VA_OPT__ BAR