1 //! This test assumes that it will be run without tcp support enabled
2 
3 #![deny(warnings)]
4 
5 use test_programs::wasi::sockets::tcp::{ErrorCode, IpAddressFamily, TcpSocket};
6 
main()7 fn main() {
8     assert!(matches!(
9         TcpSocket::new(IpAddressFamily::Ipv4),
10         Err(ErrorCode::AccessDenied)
11     ));
12 }
13