Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Modules/merge-concepts.cpp
- This file was added.
// RUN: rm -rf %t.dir | |||||
// RUN: mkdir %t.dir | |||||
// | |||||
// RUN: %clang_cc1 -xc++ -std=c++20 -fmodules -fmodule-name=library \ | |||||
// RUN: -emit-module %S/Inputs/merge-concepts/modules.map \ | |||||
// RUN: -o %t.dir/module.pcm | |||||
// | |||||
// | |||||
// RUN: %clang_cc1 -xc++ -std=c++20 -fmodules -fmodule-file=%t.dir/module.pcm \ | |||||
// RUN: -fmodule-map-file=%S/Inputs/merge-concepts/modules.map \ | |||||
// RUN: -I%S/Inputs/merge-concepts \ | |||||
// RUN: -fsyntax-only -verify %s | |||||
#include "concepts.h" | |||||
#include "conflicting.h" | |||||
#include "format.h" | |||||
template <class T> void foo() | |||||
requires same_as<T, T> | |||||
{} | |||||
ConflictingConcept auto x = 10; // expected-error {{reference to 'ConflictingConcept' is ambiguous}} | |||||
// expected-note@* 2 {{candidate}} |