]> granicus.if.org Git - clang/commitdiff
Relax the ms-intrin.cpp test
authorHans Wennborg <hans@hanshq.net>
Thu, 16 Jan 2014 23:59:08 +0000 (23:59 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 16 Jan 2014 23:59:08 +0000 (23:59 +0000)
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

test/Headers/ms-intrin.cpp

index 6a6c23235563cc9ff07d4bd18c3cb4bf4b192451..6033d436e6aecd414f54f6d7f6b82c4bf409b052 100644 (file)
@@ -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}}
-}