From bcbd587b0f5312d85307785ee2df6e5906af4f7b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 24 May 2010 10:37:38 -0700 Subject: Implement all operators specified for GLSL #if expressions (with tests). The operator coverage here is quite complete. The one big thing missing is that we are not yet doing macro expansion in #if lines. This makes the whole support fairly useless, so we plan to fix that shortcoming right away. --- tests/050-if-defined.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/050-if-defined.c (limited to 'tests/050-if-defined.c') diff --git a/tests/050-if-defined.c b/tests/050-if-defined.c new file mode 100644 index 0000000000..9838cc747d --- /dev/null +++ b/tests/050-if-defined.c @@ -0,0 +1,19 @@ +#if defined foo +failure_1 +#else +success_1 +#endif +#define foo +#if defined foo +success_2 +#else +failure_2 +#endif +#undef foo +#if defined foo +failure_3 +#else +success_3 +#endif + + -- cgit v1.2.3