From 63c3a5fcddaa493b6b95ed8f5d2d329d931fff3e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 17 Oct 2008 23:04:32 +0000 Subject: [PATCH] Add some uses of PredefinedExpr to language coverage includes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57744 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Coverage/c-language-features.inc | 6 ++++++ test/Coverage/objc-language-features.inc | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/test/Coverage/c-language-features.inc b/test/Coverage/c-language-features.inc index 624f89a355..ec8dd631be 100644 --- a/test/Coverage/c-language-features.inc +++ b/test/Coverage/c-language-features.inc @@ -137,3 +137,9 @@ void f5() { float4 t1 = t0; t0.lo.e = t1.hi.x; } + +void f6() { + char *s0 = __func__; + char *s1 = __FUNCTION__; + char *s2 = __PRETTY_FUNCTION__; +} diff --git a/test/Coverage/objc-language-features.inc b/test/Coverage/objc-language-features.inc index 87177cf243..e060d032ce 100644 --- a/test/Coverage/objc-language-features.inc +++ b/test/Coverage/objc-language-features.inc @@ -30,7 +30,11 @@ [super fm0]; } -(void) im0 { + char *s0 = __func__; + char *s1 = __FUNCTION__; + char *s2 = __PRETTY_FUNCTION__; [super im0]; + int x = super.p0; } -(void) im1: (int) x, ... { } -- 2.40.0