summaryrefslogtreecommitdiff
path: root/test/LLVMC/EnvParentheses.td
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-05-05 12:34:34 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-05-05 12:34:34 +0000
commitf8681568201ee3808c154a4de09888d85c76a446 (patch)
treee19b094007238936145c03d5081cb20e6058ac31 /test/LLVMC/EnvParentheses.td
parente3f6cea9e9fc65e3429a28812460841c93fd75a5 (diff)
downloadllvm-f8681568201ee3808c154a4de09888d85c76a446.tar.gz
llvm-f8681568201ee3808c154a4de09888d85c76a446.tar.bz2
llvm-f8681568201ee3808c154a4de09888d85c76a446.tar.xz
Fix incorrect code generation with ENV.
See PR4157 for details. Patch by Martin Nowack! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC/EnvParentheses.td')
-rw-r--r--test/LLVMC/EnvParentheses.td16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/LLVMC/EnvParentheses.td b/test/LLVMC/EnvParentheses.td
new file mode 100644
index 0000000000..cf2a0e376f
--- /dev/null
+++ b/test/LLVMC/EnvParentheses.td
@@ -0,0 +1,16 @@
+// Check the fix for PR4157.
+// http://llvm.org/bugs/show_bug.cgi?id=4157
+// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: not grep {)));} %t
+
+include "llvm/CompilerDriver/Common.td"
+
+def dummy_tool : Tool<[
+(cmd_line "gcc -o $OUTFILE $INFILE $ENV(FOO)/bar"),
+(in_language "dummy"),
+(out_language "dummy")
+]>;
+
+def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;
+
+def Graph : CompilationGraph<[]>;