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
// 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}}
-}