repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
is_literal_type1.C
blob
b146bdee9f10b591456a04851514e0d28cd7acbd
1
// PR c++/48771
2
// { dg-do compile { target c++11 } }
3
4
struct NonLiteral {
5
NonLiteral();
6
~NonLiteral();
7
};
8
9
static_assert(__is_literal_type(NonLiteral&), "Error");
10
static_assert(__is_literal_type(NonLiteral&&), "Error");