• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Boost.Wave: A Standard compliant C++ preprocessor library
3     http://www.boost.org/
4 
5     Copyright (c) 2020 Jeff Trull. Distributed under the Boost
6     Software License, Version 1.0. (See accompanying file
7     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
9 
10 //O --c++20
11 //O -Werror
12 
13 // test that __VA_OPT__ cannot be used inside itself
14 
15 // gcc detects this at definition time
16 //E t_8_010.cpp(17): error: __VA_OPT__() may not contain __VA_OPT__: FOO
17 #define FOO(...) BAR __VA_OPT__(__VA_OPT__(,) BAZ) BAR
18 
19