From: Mitch Phillips <31459023+hctim@users.noreply.github.com> Date: Wed, 7 Dec 2022 16:50:33 +0000 (-0800) Subject: Fix dwarf5-lazy-dwo.c for the default c target not being c99. X-Git-Tag: upstream/17.0.6~24928 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc5bda52f00b63fbe4b503b813380d9b81ee7f0b;p=platform%2Fupstream%2Fllvm.git Fix dwarf5-lazy-dwo.c for the default c target not being c99. My host compiler is clang version 15.0.0, which uses -std=c11 by default. The test asserts that the language is 'c99', and so the test fails locally. Update the test to be explicit about compiling with 'c99'. Reviewed By: Eric Differential Revision: https://reviews.llvm.org/D139461 --- diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c index 5c9f1fc..d9c8237 100644 --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c @@ -3,11 +3,11 @@ // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t1.o -DONE -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO -// RUN: %clang_host %t1.o %t2.o -o %t +// RUN: %clang_host %t1.o %t2.o -o %t -std=c99 // RUN: %lldb %t -o "log enable 'lldb' object" -o "settings set stop-line-count-before 0" \ // RUN: -o "b main" -o "run" -o "image lookup -n main -v" -b | FileCheck %s