commit | 713e3f25636736fe798c8603ebca56ae8d5372e8 | [log] [tgz] |
---|---|---|
author | Enea Zaffanella <zaffanella@cs.unipr.it> | Thu May 16 11:27:56 2013 +0000 |
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | Thu May 16 11:27:56 2013 +0000 |
tree | ced56de46dab137dfde201f99e9d9ee7a9744442 | |
parent | 8a99945769aa83270bda4ae4890f519800aa19eb [diff] [blame] |
Let CodeGenFunction::EmitVarDecl query the semantic storage class info. Added testcase corresponding to PR15991. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181998 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/anonymous-namespaces.cpp b/test/CodeGenCXX/anonymous-namespaces.cpp index 32e17a3..e9d1921 100644 --- a/test/CodeGenCXX/anonymous-namespaces.cpp +++ b/test/CodeGenCXX/anonymous-namespaces.cpp
@@ -66,3 +66,12 @@ // CHECK-2: define internal void @_ZN5test21A1BINS_12_GLOBAL__N_11CEE3fooEv() } + +namespace { + +int bar() { + extern int a; + return a; +} + +} // namespace