f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
16 lines
865 B
C
16 lines
865 B
C
// RUN: %clang -### -S %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
|
// RUN: %clang -### -S %s -g -target x86_64-linux-gnu 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
|
|
// RUN: %clang -### -S %s -g -target x86_64-apple-darwin 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
|
|
// RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
|
// RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
|
// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
|
|
// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
|
|
|
|
// CHECK-WITHOUT-G-NOT: "-g"
|
|
// CHECK-WITH-G: "-g"
|
|
// CHECK-WITH-G-DARWIN: "-gdwarf-2"
|
|
|