Skip to content
Snippets Groups Projects
Commit d3f9573c authored by Nirav Dave's avatar Nirav Dave
Browse files

Replace preserve-as-comments CodeGen test with driver test

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276947 91177308-0d34-0410-b5e6-96231b3b80d8
parent a43c36cc
No related branches found
No related tags found
No related merge requests found
// RUN: %clang_cc1 -S -triple=x86_64-unknown-unknown -fno-preserve-as-comments %s -o - | FileCheck %s --check-prefix=NOASM --check-prefix=CHECK
// RUN: %clang_cc1 -S %s -triple=x86_64-unknown-unknown -o - | FileCheck %s --check-prefix=ASM --check-prefix=CHECK
// CHECK-LABEL: main
// CHECK: #APP
// ASM: #comment
// NOASM-NOT: #comment
// CHECK: #NO_APP
int main() {
__asm__("/*comment*/");
return 0;
}
// RUN: %clang -S -fno-preserve-as-comments %s -### 2>&1 | FileCheck %s
// CHECK: "-fno-preserve-as-comments"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment