This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257295 - inaccuracy tests: apt.use.clank and Vlc
Summary: inaccuracy tests: apt.use.clank and Vlc
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-25 13:33 UTC by soldatov
Modified: 2016-07-19 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-12-25 13:33:59 UTC
test.h:
============================================================================

static inline int foo() {
    const char *s = "== " PRIx32 " ==";
    if (printf("== "PRIx32" ==\n")) { // unresolved identifier
        return 0;
    }
    return 0;
}

============================================================================

main.cpp:
============================================================================

#include <cstdio>
#include <inttypes.h>
#include "test.h"

int main() {
    foo();
    return 0;
}

============================================================================

If apt.use.clank=false, then I see unresolved identifier in test.h.
Comment 1 Vladimir Voskresensky 2016-07-19 13:27:49 UTC
reduced to 
# define PRIx32		"x"

static inline int foo() {
    const char *s = "== " PRIx32;
    const char *p = "== "PRIx32; // not HLed as macro
}