repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
pr62174.cpp
blob
a5283706ec4f6c32d280daee1a7c02f81a9df50a
1
// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
2
// expected-no-diagnostics
3
namespace
lib
{
4
namespace
impl
{
5
template
<
class
>
6
inline constexpr
bool
test
=
false
;
7
}
8
using
impl
::
test
;
9
}
10
11
struct
foo
{};
12
13
template
<>
14
inline constexpr
bool
lib
::
test
<
foo
> =
true
;
15
16
static_assert
(
lib
::
test
<
foo
>);