aboutsummaryrefslogblamecommitdiff
path: root/test/Modules/merge-decl-order.cpp
blob: 91ec048b38c5f2bb5fc56a11d0bca0d8099170a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                 
                                                                                                                   






                                                                              
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-decl-order -verify %s
// expected-no-diagnostics

// Check that we include all decls from 'a' before the decls from 'b' in foo's
// redecl chain. If we don't, then name lookup only finds invisible friend
// declarations and the lookup below will fail.
#include "b.h"
N::foo *use;