diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-01-09 17:30:44 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-01-09 17:30:44 +0000 |
| commit | cfe7dc6b2f694ca0a18698e830a0dcb4c7dfe979 (patch) | |
| tree | a3b3455b0d5e13ee38987819113ea8dd98de2a7d /clang/test/Modules/Inputs/namespaces-left.h | |
| parent | f9d0cc016080e217daeb6e200cbd9839bf5aa78b (diff) | |
| download | bcm5719-llvm-cfe7dc6b2f694ca0a18698e830a0dcb4c7dfe979.tar.gz bcm5719-llvm-cfe7dc6b2f694ca0a18698e830a0dcb4c7dfe979.zip | |
Implement redeclaration merging for namespaces defined in distinct
modules. Teach name lookup into namespaces to search in each of the
merged DeclContexts as well as the (now-primary) DeclContext. This
supports the common case where two different modules put something
into the same namespace.
llvm-svn: 147778
Diffstat (limited to 'clang/test/Modules/Inputs/namespaces-left.h')
| -rw-r--r-- | clang/test/Modules/Inputs/namespaces-left.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/namespaces-left.h b/clang/test/Modules/Inputs/namespaces-left.h index 85e6d7dc607..6835cda0c4f 100644 --- a/clang/test/Modules/Inputs/namespaces-left.h +++ b/clang/test/Modules/Inputs/namespaces-left.h @@ -9,3 +9,19 @@ namespace N1 { namespace N2 { float& f(float); } + + + + + +namespace N5 { + int &f(int); +} + +namespace N6 { + int &f(int); +} + +namespace N7 { + int &f(int); +} |

