forked from OSchip/llvm-project
Make one of the new tests fail correctly on pre-C++17 systems
llvm-svn: 286872
This commit is contained in:
parent
4fef68cb8d
commit
10e59fac3e
|
@ -14,7 +14,13 @@
|
|||
#include <memory>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
#if TEST_STD_VER > 14
|
||||
const int *p = std::addressof<const int>(0);
|
||||
#else
|
||||
#error
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue