xref: /netbsd-src/tools/llvm/module-test.cpp (revision 53b02e147d4ed531c0d2a5ca9b3e8026ba3e99b5)
1 // Test that NDEBUG works
2 #undef NDEBUG
3 #include <cassert>
4 #define NDEBUG
5 #include <cassert>
6 int
7 main()
8 {
9 	assert(this code is not compiled);
10 }
11 
12 #ifndef _LIBCPP_VERSION
13 #error "Modules currently requires libc++"
14 #endif
15