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