Douglas Gregor | f06027d | 2010-02-24 21:53:36 +0000 | [diff] [blame] | 1 | // Merge success |
| 2 | namespace N1 { |
| 3 | int x; |
| 4 | } |
| 5 | |
| 6 | // Merge multiple namespaces |
| 7 | namespace N2 { |
| 8 | extern int x; |
| 9 | } |
| 10 | namespace N2 { |
| 11 | extern float y; |
| 12 | } |
| 13 | |
| 14 | // Merge namespace with conflict |
| 15 | namespace N3 { |
| 16 | extern float z; |
| 17 | } |
Aleksei Sidorin | 2697f8e | 2017-11-21 16:08:41 +0000 | [diff] [blame^] | 18 | |
| 19 | namespace AliasWithSameName = N3; |
| 20 | |
| 21 | namespace TestUnresolvedTypenameAndValueDecls { |
| 22 | template <class T> class Base { |
| 23 | public: |
| 24 | typedef T foo; |
| 25 | void bar(); |
| 26 | }; |
| 27 | } |