2015-06-23 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / scoped_enum5.C
blob7a327a331ce271b819eedf71e66be856abc85e78
1 // PR c++/66254
2 // { dg-do compile { target c++11 } }
4 namespace boost {
5 namespace http {
7 enum class read_state
9     empty
12 template<class Socket>
13 class basic_socket
15 public:
16     http::read_state read_state() const;
18     void async_read_request();
20 private:
21     http::read_state istate;
24 template<class Socket>
25 read_state basic_socket<Socket>::read_state() const
27     return istate;
30 template<class Socket>
31 void basic_socket<Socket>::async_read_request()
33     read_state::empty;
36 } // namespace boost
37 } // namespace http