summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-08-13 19:24:16 +0300
committerAndreas Kling <kling@serenityos.org>2021-08-14 12:40:55 +0200
commite57fdb63f8c1399db066f04a6ac16e13f8ad0f14 (patch)
tree61af37d3daccd9ca871881d95f9a6055652f0e06 /Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp
parenta38c330c686d760d1a0d42a60c4012549dad55fb (diff)
downloadserenity-e57fdb63f8c1399db066f04a6ac16e13f8ad0f14.zip
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.
Diffstat (limited to 'Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp')
-rw-r--r--Userland/Libraries/LibCpp/Tests/preprocessor/macro3.cpp4
1 files changed, 4 insertions, 0 deletions
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}))
+