Add {symbol,call}_summary::get method and use it in HSA.
[official-gcc.git] / gcc / testsuite / g++.dg / constexpr-null1.C
blobb9ec7b5f3f54fd0e9b7ad54cf144ef2beafd4662
1 // PR c++/46670
2 // { dg-do compile { target c++11 } }
4 extern unsigned char __TBB_ReverseByte(unsigned char src);
5 extern unsigned char *reversed;
6 template<typename T> T __TBB_ReverseBits(T src)
8   unsigned char *original = (unsigned char *) &src;
9   for( int i = sizeof(T)-1; i--; )
10     reversed[i] = __TBB_ReverseByte( original[sizeof(T)-i-1] );