Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / misc-source-ranges.cpp
blob1835952fd7559026dd051886a8b60478678de342
1 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info -Wcast-function-type-strict %s 2>&1 | FileCheck %s
3 struct S {
4 char a : 12 - 12;
5 };
6 // CHECK: misc-source-ranges.cpp:[[@LINE-2]]:8:{[[@LINE-2]]:12-[[@LINE-2]]:19}
8 using fun = long(*)(int &);
9 fun foo(){
10 long (*f_ptr)(const int &);
11 return fun(f_ptr);
13 // CHECK: misc-source-ranges.cpp:[[@LINE-2]]:10:{[[@LINE-2]]:10-[[@LINE-2]]:20}