summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/glcpp/tests/021-define-func-compose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/glcpp/tests/021-define-func-compose.c')
-rw-r--r--src/compiler/glsl/glcpp/tests/021-define-func-compose.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/tests/021-define-func-compose.c b/src/compiler/glsl/glcpp/tests/021-define-func-compose.c
new file mode 100644
index 0000000000..21ddd0e65f
--- /dev/null
+++ b/src/compiler/glsl/glcpp/tests/021-define-func-compose.c
@@ -0,0 +1,3 @@
+#define bar(x) (1+(x))
+#define foo(y) (2*(y))
+foo(bar(3))