Ticket #8609: jojo.2.cpp

File jojo.2.cpp, 529 bytes (added by nicolas danet <nicolas.danet@…>, 9 years ago)
Line 
1
2// GOOD:
3// g++ -arch i386 -I $HOME/dev/boost_1_53_0/ jojo.cpp
4
5// BAD:
6// g++ -arch ppc -I $HOME/dev/boost_1_53_0/ jojo.cpp
7// g++ -arch ppc -I $HOME/download/boost-trunk/ jojo.cpp
8
9/* boost-trunk/boost/atomic/detail/gcc-ppc.hpp:1211: error: impossible constraint in 'asm' */
10/* boost_1_53_0/boost/atomic/detail/gcc-ppc.hpp:1204: error: impossible constraint in 'asm' */
11
12#include <boost/atomic.hpp>
13
14int main( )
15{
16 boost::atomic<long> messageCount_(0);
17 messageCount_.fetch_add(1, boost::memory_order_relaxed);
18}
19
20