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