Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/attrib41.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/45267 // { dg-options "-O" } template<typename T> struct Vector { Vector(long long x); inline Vector<T> operator<<(int x) const __attribute__((always_inline)); }; long long bar (long long); template<> inline Vector<int> Vector<int>::operator<<(int x) const { return bar(x); } bool b; int main() { Vector<int> a(1); if ((a << 2), b) { a << 2; throw 1; } }