Richard Smith | 8807e83 | 2015-02-12 23:21:45 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-decl-order -verify %s |
Richard Smith | 8807e83 | 2015-02-12 23:21:45 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
| 4 | |
| 5 | // Check that we include all decls from 'a' before the decls from 'b' in foo's |
| 6 | // redecl chain. If we don't, then name lookup only finds invisible friend |
| 7 | // declarations and the lookup below will fail. |
| 8 | #include "b.h" |
| 9 | N::foo *use; |