| 1 |
// PR c++/47132 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-final { scan-assembler "_Z1fIiEDToRfp_Li1EET_" } } |
| 4 |
// { dg-additional-options -fabi-compat-version=0 } |
| 5 |
|
| 6 |
template <typename T> |
| 7 |
auto f (T t) -> decltype(t |= 1); |
| 8 |
|
| 9 |
int main() |
| 10 |
{ |
| 11 |
f(1); |
| 12 |
} |