Skip to content
Snippets Groups Projects
Commit daab90c9 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Relax the ms-intrin.cpp test

The part that checks that certain functions are marked deprecated doesn't
seem that useful, and it has the bad effect that the test hard-coded the
locations of the notes from that test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199441 91177308-0d34-0410-b5e6-96231b3b80d8
parent 16d61023
No related branches found
No related tags found
No related merge requests found
......@@ -11,14 +11,3 @@ typedef __SIZE_TYPE__ size_t;
// Use some C++ to make sure we closed the extern "C" brackets.
template <typename T>
void foo(T V) {}
void bar() {
_ReadWriteBarrier(); // expected-warning {{is deprecated: use other intrinsics or C++11 atomics instead}}
_ReadBarrier(); // expected-warning {{is deprecated: use other intrinsics or C++11 atomics instead}}
_WriteBarrier(); // expected-warning {{is deprecated: use other intrinsics or C++11 atomics instead}}
// FIXME: It'd be handy if we didn't have to hardcode the line number in
// intrin.h.
// expected-note@Intrin.h:754 {{'_ReadWriteBarrier' has been explicitly marked deprecated here}}
// expected-note@Intrin.h:759 {{'_ReadBarrier' has been explicitly marked deprecated here}}
// expected-note@Intrin.h:764 {{'_WriteBarrier' has been explicitly marked deprecated here}}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment