From 9a48db1659dbd53cc71ecf940fb6a865f2ee4e26 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 18 Jan 2010 19:28:01 +0000 Subject: Print fix-it hints properly around tabs, from Christian Adåker! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-svn: 93750 --- clang/test/Misc/tabstop.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'clang/test/Misc') diff --git a/clang/test/Misc/tabstop.c b/clang/test/Misc/tabstop.c index 3fabda76eb8..66685c62d15 100644 --- a/clang/test/Misc/tabstop.c +++ b/clang/test/Misc/tabstop.c @@ -28,3 +28,23 @@ void* d = 1; //CHECK-5: {{^ void\* b = 1;}} //CHECK-5: {{^ void\* c = 1;}} //CHECK-5: {{^void\* d = 1;}} + +// Test code modification hints + +void f(void) +{ + if (0 & 1 == 1) + {} +} + +// CHECK-3: {{^ }}if (0 & 1 == 1) +// CHECK-3: {{^ }} ( ) +// CHECK-3: {{^ }} ( ) + +// CHECK-4: {{^ }}if (0 & 1 == 1) +// CHECK-4: {{^ }} ( ) +// CHECK-4: {{^ }} ( ) + +// CHECK-5: {{^ }}if (0 & 1 == 1) +// CHECK-5: {{^ }} ( ) +// CHECK-5: {{^ }} ( ) -- cgit v1.2.3