llvm-capstone/clang/test/Modules/inherit-attribute.cpp
Vaibhav Garg aca191cce1 Re-land 7a527f17776be78ec44b88e82b39afb65fc148e4 with fixes.
The original commit was reverted in 58c305f466d1f78adb10e7295b9bc9fc192a6e09
due to broken bots. This commit corrects the triple and command line paths.
2020-08-21 14:40:09 -04:00

21 lines
664 B
C++

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -triple x86_64-pc-windows-msvc -I%S/Inputs/inherit-attribute -fmodules-cache-path=%t \
// RUN: -fimplicit-module-maps -fmodules-local-submodule-visibility %s -ast-dump-all \
// RUN: | FileCheck %s
#include "b.h"
#include "c.h"
class Foo;
Foo f;
// CHECK: CXXRecordDecl {{.*}} imported in b {{.*}} Foo
// CHECK: MSInheritanceAttr {{[^()]*$}}
// CHECK: CXXRecordDecl {{.*}} prev {{.*}} imported in c {{.*}} Foo
// CHECK: MSInheritanceAttr {{.*}} Inherited {{[^()]*$}}
// CHECK: CXXRecordDecl {{.*}} <line:9:1, col:7> col:7 referenced class Foo
// CHECK: MSInheritanceAttr {{.*}} Inherited {{[^()]*$}}