projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
resurrect lost tests by renaming them to not end with .tr
[oota-llvm.git]
/
test
/
C++Frontend
/
2004-01-11-DynamicInitializedConstant.cpp
diff --git a/test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp
b/test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp
new file mode 100644
(file)
index 0000000..
8ae15c9
--- /dev/null
+++ b/
test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp
@@ -0,0
+1,6
@@
+// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant }
+
+extern int X;
+const int Y = X;
+const int* foo() { return &Y; }
+