Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/debug-options.c
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | |||||
// RUN: %clang -### -gdwarf-2 -gembed-source %s 2>&1 | FileCheck -check-prefix=GEMBED_2 %s | // RUN: %clang -### -gdwarf-2 -gembed-source %s 2>&1 | FileCheck -check-prefix=GEMBED_2 %s | ||||
// RUN: %clang -### -gdwarf-5 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_5 %s | // RUN: %clang -### -gdwarf-5 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_5 %s | ||||
// RUN: %clang -### -gdwarf-2 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_2 %s | // RUN: %clang -### -gdwarf-2 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_2 %s | ||||
// | // | ||||
// GEMBED_5: "-gembed-source" | // GEMBED_5: "-gembed-source" | ||||
// GEMBED_2: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5' | // GEMBED_2: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5' | ||||
// NOGEMBED_5-NOT: "-gembed-source" | // NOGEMBED_5-NOT: "-gembed-source" | ||||
// NOGEMBED_2-NOT: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5' | // NOGEMBED_2-NOT: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5' | ||||
// | |||||
// RUN: %clang -### -g -fno-eliminate-unused-debug-types -c %s 2>&1 \ | |||||
// RUN: | FileCheck -check-prefix=DEBUG_UNUSED_TYPES %s | |||||
// DEBUG_UNUSED_TYPES: "-debug-info-kind=unused-types" | |||||
// DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=limited" | |||||
// RUN: %clang -### -g -feliminate-unused-debug-types -c %s 2>&1 \ | |||||
// RUN: | FileCheck -check-prefix=NO_DEBUG_UNUSED_TYPES %s | |||||
// NO_DEBUG_UNUSED_TYPES: "-debug-info-kind=limited" | |||||
// NO_DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=unused-types" |