| 1 |
// AIX does not support -gdwarf-5 which is required by -gembed-source |
| 2 |
// UNSUPPORTED: target={{.*}}-aix{{.*}} |
| 3 |
|
| 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' |
| 13 |
// |