xref: /aosp_15_r20/external/clang/test/Preprocessor/macro_rescan_varargs.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
2 
3 #define LPAREN (
4 #define RPAREN )
5 #define F(x, y) x + y
6 #define ELLIP_FUNC(...) __VA_ARGS__
7 
8 1: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */
9 2: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */
10 
11 // CHECK: 1: F, (, 'a', 'b', );
12 // CHECK: 2: 'a' + 'b';
13 
14