[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / debug-options-embed-source.c
blobacb00fca62ee03e8469b9b735a1199ef38c568af
1 // AIX does not support -gdwarf-5 which is required by -gembed-source
2 // UNSUPPORTED: target={{.*}}-aix{{.*}}
4 // RUN: %clang -### -gdwarf-5 -gembed-source %s 2>&1 | FileCheck -check-prefix=GEMBED_5 %s
5 // RUN: not %clang -### -gdwarf-2 -gembed-source %s 2>&1 | FileCheck -check-prefix=GEMBED_2 %s
6 // RUN: %clang -### -gdwarf-5 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_5 %s
7 // RUN: %clang -### -gdwarf-2 -gno-embed-source %s 2>&1 | FileCheck -check-prefix=NOGEMBED_2 %s
8 //
9 // GEMBED_5: "-gembed-source"
10 // GEMBED_2: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5'
11 // NOGEMBED_5-NOT: "-gembed-source"
12 // NOGEMBED_2-NOT: error: invalid argument '-gembed-source' only allowed with '-gdwarf-5'