diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-01-19 23:42:44 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-01-19 23:42:44 +0000 |
| commit | cd975018feb88d2ae9f83b712b1d3684985df0f3 (patch) | |
| tree | 52651c3767ecc3ccac0b62691be131dbfefa1fd8 /clang/test/Modules/ExtDebugInfo.cpp | |
| parent | 6f630f800beee0653ae7d7bf28d2ea2b145aeb04 (diff) | |
| download | bcm5719-llvm-cd975018feb88d2ae9f83b712b1d3684985df0f3.tar.gz bcm5719-llvm-cd975018feb88d2ae9f83b712b1d3684985df0f3.zip | |
Module Debugging: Make sure that anonymous tag decls that define global
variables are visited.
This shouldn't encourage anyone to put global variables into clang modules.
rdar://problem/24199640
llvm-svn: 258250
Diffstat (limited to 'clang/test/Modules/ExtDebugInfo.cpp')
| -rw-r--r-- | clang/test/Modules/ExtDebugInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp index b0bca88b89e..6c5bd559fc9 100644 --- a/clang/test/Modules/ExtDebugInfo.cpp +++ b/clang/test/Modules/ExtDebugInfo.cpp @@ -39,6 +39,10 @@ TypedefUnion tdu; TypedefEnum tde; TypedefStruct tds; +void foo() { + GlobalStruct.i = GlobalUnion.i = GlobalEnum; +} + // CHECK: ![[NS:.*]] = !DINamespace(name: "DebugCXX", scope: ![[MOD:[0-9]+]], // CHECK: ![[MOD]] = !DIModule(scope: null, name: {{.*}}DebugCXX |

