view gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }

// Check that constraints don't break unconstrained partial
// specializations.

template<typename T>
  struct S { };

template<typename T>
  struct S<T*> { };

template<>
  struct S<int> { };

int main() { }