From e57fdb63f8c1399db066f04a6ac16e13f8ad0f14 Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 13 Aug 2021 19:24:16 +0300 Subject: Tests: Add regression tests for the LibCpp preprocessor Similarly to the LibCpp parser regression tests, these tests run the preprocessor on the .cpp test files under Userland/LibCpp/Tests/preprocessor, and compare the output with existing .txt ground truth files. --- Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp (limited to 'Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp') diff --git a/Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp b/Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp new file mode 100644 index 0000000000..b02baa5d93 --- /dev/null +++ b/Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp @@ -0,0 +1,4 @@ +#define M(x, y, z) x y = z; + +M(Vector, vec, ({1,2})) + -- cgit v1.2.3