summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/srcgenex_defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/GeneratorExpression/srcgenex_defs.c')
-rw-r--r--Tests/GeneratorExpression/srcgenex_defs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/srcgenex_defs.c b/Tests/GeneratorExpression/srcgenex_defs.c
new file mode 100644
index 0000000..883e631
--- /dev/null
+++ b/Tests/GeneratorExpression/srcgenex_defs.c
@@ -0,0 +1,12 @@
+int srcgenex_defs(void)
+{
+ return 0;
+}
+
+int main(int argc, char* argv[])
+{
+#ifndef NAME
+#error NAME not defined
+#endif
+ return NAME();
+}