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 c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-56302.C
blob
945bf020f0ebb139adfe86fa34529d2292b18763
1
// PR c++/56302
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-O0" }
4
5
constexpr int foo () { return 42; }
6
constexpr int x = foo () + 2;
7
8
void
9
bar ()
10
{
11
__asm ("" : : "n" (x), "n" (foo () * 7 + x));
12
}