From: Hans Wennborg Date: Thu, 16 Jan 2014 23:59:08 +0000 (+0000) Subject: Relax the ms-intrin.cpp test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daab90c9907d6a099ac869fcda1be0a1577d8e72;p=clang 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 --- diff --git a/test/Headers/ms-intrin.cpp b/test/Headers/ms-intrin.cpp index 6a6c232355..6033d436e6 100644 --- a/test/Headers/ms-intrin.cpp +++ b/test/Headers/ms-intrin.cpp @@ -11,14 +11,3 @@ typedef __SIZE_TYPE__ size_t; // Use some C++ to make sure we closed the extern "C" brackets. template 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}} -}