r199441 - Relax the ms-intrin.cpp test
Hans Wennborg
hans at hanshq.net
Thu Jan 16 15:59:08 PST 2014
Author: hans
Date: Thu Jan 16 17:59:08 2014
New Revision: 199441
URL: http://llvm.org/viewvc/llvm-project?rev=199441&view=rev
Log:
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.
Modified:
cfe/trunk/test/Headers/ms-intrin.cpp
Modified: cfe/trunk/test/Headers/ms-intrin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/ms-intrin.cpp?rev=199441&r1=199440&r2=199441&view=diff
==============================================================================
--- cfe/trunk/test/Headers/ms-intrin.cpp (original)
+++ cfe/trunk/test/Headers/ms-intrin.cpp Thu Jan 16 17:59:08 2014
@@ -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 at Intrin.h:754 {{'_ReadWriteBarrier' has been explicitly marked deprecated here}}
- // expected-note at Intrin.h:759 {{'_ReadBarrier' has been explicitly marked deprecated here}}
- // expected-note at Intrin.h:764 {{'_WriteBarrier' has been explicitly marked deprecated here}}
-}
More information about the cfe-commits
mailing list