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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_constructor_odr.C
blob
68ca111b09da11c070c9674338a1620020f80c1e
1
// PR c++/36870
2
// { dg-do run }
3
#include <cassert>
4
5
struct S { S (); };
6
7
bool f ();
8
9
int main ()
10
{
11
assert (__has_nothrow_constructor (S) == f ());
12
}
13
14
S::S () { }
15
16
bool f () { return __has_nothrow_constructor (S); }