mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-08 11:26:08 +00:00

definition, be sure to update the definition data on all declarations, not just the canonical one, since the pattern might not be in the list of pending definitions (if it used to be canonical itself). One-line fix by me; reduced testcase by Daniel Jasper! llvm-svn: 231950
23 lines
657 B
C++
23 lines
657 B
C++
// RUN: rm -rf %t
|
|
//
|
|
// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \
|
|
// RUN: -emit-module -fmodule-name=a -o %t/a.pcm \
|
|
// RUN: %S/Inputs/merge-template-friend/module.modulemap
|
|
//
|
|
// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \
|
|
// RUN: -emit-module -fmodule-name=b -o %t/b.pcm \
|
|
// RUN: %S/Inputs/merge-template-friend/module.modulemap
|
|
//
|
|
// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \
|
|
// RUN: -I%S/Inputs/merge-template-friend \
|
|
// RUN: -fmodule-file=%t/a.pcm \
|
|
// RUN: -fmodule-file=%t/b.pcm \
|
|
// RUN: -verify %s
|
|
|
|
#include "friend.h"
|
|
#include "def.h"
|
|
|
|
::ns::C<int> c;
|
|
|
|
// expected-no-diagnostics
|